#include "myqprogressbar.h"

MyQProgressBar::MyQProgressBar(QObject *parent ):
    QThread(parent)
{

}
void  MyQProgressBar::run()
{
   /* fd_set rfds;
    struct timeval tv;
    int retval;
    while(1)
    {
        FD_ZERO(&rfds);
        FD_SET(this->fd,&rfds);
        tv.tv_sec=5;
        tv.tv_usec=0;
        retval = select(fd+1,&rfds,NULL,NULL,&tv);
        if(retval < 0)
       {
                 qDebug()<< "select error!\n";
       }
        if(retval == 0)
       {
              // qDebug()<<"No data within 5 seconds!\n";
       }
       if(retval > 0)
       {
           if(FD_ISSET(fd,&rfds))
           {
                    emit readyRecv();
                    qDebug()<<"emit readyRecv"<<'\n';
                    sleep(2);
           }
       }
    }*/
}
